package com.waste.game.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.waste.game.entity.entitiytv.VideoAllBean;
import com.waste.game.entity.entitiytv.VideoEpicBean;
import org.apache.ibatis.annotations.Param;
import org.springframework.transaction.annotation.Transactional;

import java.util.Collection;
import java.util.List;
@Transactional(rollbackFor = RuntimeException.class)
public interface VideoPlayerDao extends BaseMapper<VideoEpicBean> {
    //查询视频集数
    List<VideoEpicBean> getVideoEpic(@Param("num") int num);
    //链接批量插入
    Integer insertBatchColumn(List<VideoEpicBean> videoEpicBeans);
    //单个视频链接搜索
    VideoEpicBean getVideoEpicOne(@Param("id")Integer i,@Param("epic")Integer i2);
    //修改单个视频
    Integer upUrlOne(@Param("e") VideoEpicBean videoEpicBean);
}
